CXXFLAGS = -g

cppscript : cppscript.tab.o lex.yy.o parser.o cppscript.o
	g++ -o $@ $^ -ldynamic $(CXXFLAGS)

lex.yy.cpp : cppscript.l
	flex -o$@ $<

cppscript.tab.cpp : cppscript.y
	bison -o$@ $<

clean:
	rm cppscript *.o cppscript.tab.cpp lex.yy.cpp
# DO NOT DELETE

cppscript.o: parser.hpp
cppscript.tab.o: parser_state.hpp cppscript.tab.hpp
lex.yy.o: parser_state.hpp cppscript.tab.hpp parser.hpp /usr/include/unistd.h
parser.o: parser_state.hpp cppscript.tab.hpp
cppscript.o: parser_state.hpp cppscript.tab.hpp parser.hpp
cppscript.o: parser_state.hpp cppscript.tab.hpp
